import styled from 'styled-components'

export const TopicWrapper = styled.div`
  padding: 20px 0 10px 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  border-bottom: 1px solid #dcdcdc;
`

export const TopicItem = styled.div`
  display: inline-block;
  background: #f7f7f7;
  height: 32px;
  padding-right: 10px;
  padding-left: 10px;
  line-height: 32px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  flex-shrink: 0;
  margin-bottom: 18px;

  .topic-pic {
    width: 32px;
    height: 32px;
    vertical-align: bottom;
  }
`

export const ListItem = styled.div`
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #dcdcdc;
  justify-content: space-between;
  .pic {
    width: 125px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 4px;
  }
`

export const ListInfo = styled.div`
  .title {
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
    color: #333;
  }
  .desc {
    color: #999;
    line-height: 24px;
    font-size: 14px;
  }
`

export const RecommendWrapper = styled.div`
  margin: 30px 0;
  width: 280px;
`

export const RecommendItem = styled.div`
  width: 280px;
  height: 50px;
  background: url(${(props) => props.imgUrl});
  background-size: contain;
`

export const WriterWrapper = styled.div`
  width: 278px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  height: 300px;
  line-height: 300px;
  text-align: center;
`

export const LoadMore = styled.div`
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #a5a5a5;
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  margin: 30px 0;
`

export  const BackTopWrapper = styled.div`
  position: fixed;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 12px;
  border: 1px solid #ccc;
  right: 10px;
  bottom: 10px;
`
